Skip to content

Commit e63bffd

Browse files
authored
[urllib.request] Use SupportsItems for the Request headers parameter (#16358)
1 parent e284ce3 commit e63bffd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

stdlib/urllib/request.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import ssl
22
import sys
3-
from _typeshed import ReadableBuffer, StrOrBytesPath, SupportsRead
3+
from _typeshed import ReadableBuffer, StrOrBytesPath, SupportsItems, SupportsRead
44
from collections.abc import Callable, Iterable, Mapping, MutableMapping, Sequence
55
from email.message import Message
66
from http.client import HTTPConnection, HTTPMessage, HTTPResponse
@@ -139,7 +139,7 @@ class Request:
139139
self,
140140
url: str,
141141
data: _DataType = None,
142-
headers: MutableMapping[str, str] = {},
142+
headers: SupportsItems[str, str] = {},
143143
origin_req_host: str | None = None,
144144
unverifiable: bool = False,
145145
method: str | None = None,

0 commit comments

Comments
 (0)