Skip to content

Commit e1320b7

Browse files
[PR #9398/3f43bd1b backport][3.10] Widen trace_request_ctx type (#9403)
**This is a backport of PR #9398 as merged into master (3f43bd1).**
1 parent b5e2b0b commit e1320b7

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

CHANGES/9397.bugfix.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Widened the type of the ``trace_request_ctx`` parameter of
2+
:meth:`ClientSession.request() <aiohttp.ClientSession.request>` and friends
3+
-- by :user:`layday`.

aiohttp/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ class _RequestOptions(TypedDict, total=False):
178178
ssl: Union[SSLContext, bool, Fingerprint]
179179
server_hostname: Union[str, None]
180180
proxy_headers: Union[LooseHeaders, None]
181-
trace_request_ctx: Union[Mapping[str, str], None]
181+
trace_request_ctx: Union[Mapping[str, Any], None]
182182
read_bufsize: Union[int, None]
183183
auto_decompress: Union[bool, None]
184184
max_line_size: Union[int, None]
@@ -477,7 +477,7 @@ async def _request(
477477
ssl: Union[SSLContext, bool, Fingerprint] = True,
478478
server_hostname: Optional[str] = None,
479479
proxy_headers: Optional[LooseHeaders] = None,
480-
trace_request_ctx: Optional[Mapping[str, str]] = None,
480+
trace_request_ctx: Optional[Mapping[str, Any]] = None,
481481
read_bufsize: Optional[int] = None,
482482
auto_decompress: Optional[bool] = None,
483483
max_line_size: Optional[int] = None,

0 commit comments

Comments
 (0)