File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ class _ValidatedRequest(PreparedRequest):
109109 bytes | str | Iterable [bytes | str ] | SupportsRead [bytes | str ] | None
110110 )
111111
112- HeadersType : TypeAlias = MutableMapping [str , str | bytes ] | None
112+ HeadersType : TypeAlias = Mapping [str , str | bytes ] | None
113113
114114 CookiesType : TypeAlias = RequestsCookieJar | Mapping [str , str ]
115115
Original file line number Diff line number Diff line change 8383)
8484
8585if TYPE_CHECKING :
86- from collections .abc import MutableMapping
8786 from http .cookiejar import CookieJar
8887
8988 from typing_extensions import Self
@@ -311,7 +310,7 @@ class Request(RequestHooksMixin):
311310
312311 method : str | None
313312 url : _t .UriType | None
314- headers : MutableMapping [str , str | bytes ]
313+ headers : Mapping [str , str | bytes ]
315314 files : _t .FilesType
316315 data : _t .DataType
317316 json : _t .JsonType
You can’t perform that action at this time.
0 commit comments