Skip to content
Myr

Move Request.headers back to Mapping (#7441)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Nate Prewitt · committed by GitHub · parent b7b549b · Browse files · 2 files+2 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+2 added−3 removed

  • other:+2 added−3 removed

2 files+2 added−3 removed

modified:src/requests/_types.py+1 added-1 removed
107 unmodified lines
108 BodyType: TypeAlias = (109 bytes | str | Iterable[bytes | str] | SupportsRead[bytes | str] | None110 )111112 HeadersType: TypeAlias = MutableMapping[str, str | bytes] | None112 HeadersType: TypeAlias = Mapping[str, str | bytes] | None113114 CookiesType: TypeAlias = RequestsCookieJar | Mapping[str, str]115116 # Building blocks for FilesType
67 unmodified lines
modified:src/requests/models.py+1 added-2 removed
81 unmodified lines
82 to_key_val_list,83)8485if TYPE_CHECKING:86 from collections.abc import MutableMapping86 from http.cookiejar import CookieJar8788 from typing_extensions import Self89
219 unmodified lines
309 """310311 method: str | None312 url: _t.UriType | None314 headers: MutableMapping[str, str | bytes]313 headers: Mapping[str, str | bytes]314 files: _t.FilesType315 data: _t.DataType316 json: _t.JsonType317 params: _t.ParamsType
863 unmodified lines