Skip to content

Commit

Permalink
[PR #9398/3f43bd1b backport][3.11] Widen trace_request_ctx type (#9404
Browse files Browse the repository at this point in the history
)

**This is a backport of PR #9398 as merged into master
(3f43bd1).**

Co-authored-by: layday <layday@protonmail.com>
  • Loading branch information
patchback[bot] and layday authored Oct 3, 2024
1 parent a82aa64 commit 4c67472
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGES/9397.bugfix.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Widened the type of the ``trace_request_ctx`` parameter of
:meth:`ClientSession.request() <aiohttp.ClientSession.request>` and friends
-- by :user:`layday`.
4 changes: 2 additions & 2 deletions aiohttp/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ class _RequestOptions(TypedDict, total=False):
ssl: Union[SSLContext, bool, Fingerprint]
server_hostname: Union[str, None]
proxy_headers: Union[LooseHeaders, None]
trace_request_ctx: Union[Mapping[str, str], None]
trace_request_ctx: Union[Mapping[str, Any], None]
read_bufsize: Union[int, None]
auto_decompress: Union[bool, None]
max_line_size: Union[int, None]
Expand Down Expand Up @@ -489,7 +489,7 @@ async def _request(
ssl: Union[SSLContext, bool, Fingerprint] = True,
server_hostname: Optional[str] = None,
proxy_headers: Optional[LooseHeaders] = None,
trace_request_ctx: Optional[Mapping[str, str]] = None,
trace_request_ctx: Optional[Mapping[str, Any]] = None,
read_bufsize: Optional[int] = None,
auto_decompress: Optional[bool] = None,
max_line_size: Optional[int] = None,
Expand Down

0 comments on commit 4c67472

Please sign in to comment.