Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ repos:
- flake8-no-implicit-concat==0.3.4
- flake8-requirements==1.7.8
- repo: https://github.com/PyCQA/isort
rev: '6.1.0'
rev: '7.0.0'
hooks:
- id: isort
- repo: https://github.com/psf/black-pre-commit-mirror
Expand Down Expand Up @@ -99,7 +99,7 @@ repos:
- id: detect-private-key
exclude: ^examples/
- repo: https://github.com/asottile/pyupgrade
rev: 'v3.20.0'
rev: 'v3.21.0'
hooks:
- id: pyupgrade
args: ['--py37-plus']
Expand Down
9 changes: 9 additions & 0 deletions CHANGES/11012.breaking.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Refactored ``ClientRequest`` class. This simplifies a lot of code and improves our type
checking accuracy. It also better aligns public/private attributes with what we expect
developers to access safely from a client middleware.

If code subclasses ``ClientRequest``, it is likely that the subclass will need tweaking
to be compatible with the new version. Similarly, subclasses of ``ClientResponse`` may
need to adjust ``__init__`` parameters.

-- by :user:`Dreamsorcerer`.
2 changes: 1 addition & 1 deletion aiohttp/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -684,7 +684,7 @@ async def _connect_and_send_request(
max_field_size=max_field_size,
)
try:
resp = await req.send(conn)
resp = await req._send(conn)
try:
await resp.start(conn)
except BaseException:
Expand Down
Loading
Loading