diff --git a/stubs/requests/requests/hooks.pyi b/stubs/requests/requests/hooks.pyi index f706016ca386..73bef16cda1c 100644 --- a/stubs/requests/requests/hooks.pyi +++ b/stubs/requests/requests/hooks.pyi @@ -1,6 +1,6 @@ from typing import Any -HOOKS: Any +HOOKS: list[str] -def default_hooks(): ... +def default_hooks() -> dict[str, list[Any]]: ... def dispatch_hook(key, hooks, hook_data, **kwargs): ... diff --git a/stubs/requests/requests/models.pyi b/stubs/requests/requests/models.pyi index 0e85e09a6a8f..0a598e596df7 100644 --- a/stubs/requests/requests/models.pyi +++ b/stubs/requests/requests/models.pyi @@ -45,10 +45,10 @@ super_len = utils.super_len to_native_string = utils.to_native_string codes = status_codes.codes -REDIRECT_STATI: Incomplete -DEFAULT_REDIRECT_LIMIT: Incomplete -CONTENT_CHUNK_SIZE: Incomplete -ITER_CHUNK_SIZE: Incomplete +REDIRECT_STATI: tuple[int, ...] +DEFAULT_REDIRECT_LIMIT: int +CONTENT_CHUNK_SIZE: int +ITER_CHUNK_SIZE: int class RequestEncodingMixin: @property @@ -164,6 +164,6 @@ class Response: **kwds: Any, ) -> Any: ... @property - def links(self) -> dict[Incomplete, Incomplete]: ... + def links(self) -> dict[str, dict[str, str]]: ... def raise_for_status(self) -> None: ... def close(self) -> None: ... diff --git a/stubs/requests/requests/utils.pyi b/stubs/requests/requests/utils.pyi index ecd3536463cf..87b608d7245b 100644 --- a/stubs/requests/requests/utils.pyi +++ b/stubs/requests/requests/utils.pyi @@ -1,5 +1,5 @@ import sys -from _typeshed import Incomplete, StrOrBytesPath +from _typeshed import StrOrBytesPath from collections.abc import Generator, Iterable, Mapping from contextlib import _GeneratorContextManager from io import BufferedWriter @@ -15,7 +15,7 @@ CaseInsensitiveDict = structures.CaseInsensitiveDict InvalidURL = exceptions.InvalidURL NETRC_FILES: tuple[str, str] -DEFAULT_CA_BUNDLE_PATH: Incomplete +DEFAULT_CA_BUNDLE_PATH: str DEFAULT_PORTS: dict[str, int] DEFAULT_ACCEPT_ENCODING: str @@ -48,7 +48,7 @@ def is_ipv4_address(string_ip: str) -> bool: ... def is_valid_cidr(string_network: str) -> bool: ... def set_environ(env_name: str, value: None) -> _GeneratorContextManager[None]: ... def should_bypass_proxies(url: _Uri, no_proxy: str | None) -> bool: ... -def get_environ_proxies(url: _Uri, no_proxy: Iterable[str] | None = None) -> dict[Incomplete, Incomplete]: ... +def get_environ_proxies(url: _Uri, no_proxy: Iterable[str] | None = None) -> dict[str, str]: ... def select_proxy(url: _Uri, proxies: Mapping[str, str] | None) -> str | None: ... def resolve_proxies( request: Request | PreparedRequest, proxies: dict[str, str] | None, trust_env: bool = True