Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions stubs/requests/requests/hooks.pyi
Original file line number Diff line number Diff line change
@@ -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): ...
10 changes: 5 additions & 5 deletions stubs/requests/requests/models.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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: ...
6 changes: 3 additions & 3 deletions stubs/requests/requests/utils.pyi
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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

Expand Down Expand Up @@ -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
Expand Down
Loading