Skip to content

Fix DeprecationWarning for BaseRequest._transport_sockname in debug mode#13030

Open
uttam12331 wants to merge 1 commit into
aio-libs:3.14from
uttam12331:fix/transport-sockname-attrs
Open

Fix DeprecationWarning for BaseRequest._transport_sockname in debug mode#13030
uttam12331 wants to merge 1 commit into
aio-libs:3.14from
uttam12331:fix/transport-sockname-attrs

Conversation

@uttam12331

Copy link
Copy Markdown

What do these changes do?

Adds to BaseRequest.ATTRS so that aiohttp no longer emits a DeprecationWarning about its own code.

Are there changes in behavior for the user?

No. This is an internal fix — no public API changes.

Related issue / discussion

Fixes #13029.

Checklist

  • I think the code is well written
  • Unit tests for the changes exist
  • Documentation reflects the changes
  • CHANGES/ folder contains a changelog entry for this PR

Add '_transport_sockname' to BaseRequest.ATTRS so that aiohttp does not emit a
DeprecationWarning about its own code when running with PYTHONASYNCIODEBUG=1.

Fixes aio-libs#13029.
@psf-chronographer psf-chronographer Bot added the bot:chronographer:provided There is a change note present in this PR label Jul 1, 2026
@codecov

codecov Bot commented Jul 1, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.24%. Comparing base (6ae358f) to head (2e947e2).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             3.14   #13030   +/-   ##
=======================================
  Coverage   98.24%   98.24%           
=======================================
  Files         135      135           
  Lines       48774    48777    +3     
  Branches     2613     2613           
=======================================
+ Hits        47916    47919    +3     
  Misses        678      678           
  Partials      180      180           
Flag Coverage Δ
CI-GHA 98.29% <100.00%> (+<0.01%) ⬆️
OS-Linux 98.06% <100.00%> (+<0.01%) ⬆️
OS-Windows 95.73% <100.00%> (-0.01%) ⬇️
OS-macOS 97.26% <100.00%> (+<0.01%) ⬆️
Py-3.10 97.44% <100.00%> (+<0.01%) ⬆️
Py-3.11 97.72% <100.00%> (-0.01%) ⬇️
Py-3.12 97.80% <100.00%> (+<0.01%) ⬆️
Py-3.13 97.79% <100.00%> (+0.01%) ⬆️
Py-3.14 97.89% <100.00%> (-0.01%) ⬇️
Py-3.14t 96.89% <100.00%> (+<0.01%) ⬆️
Py-pypy-3.11 96.74% <100.00%> (-0.01%) ⬇️
VM-macos 97.26% <100.00%> (+<0.01%) ⬆️
VM-ubuntu 98.06% <100.00%> (+<0.01%) ⬆️
VM-windows 95.73% <100.00%> (-0.01%) ⬇️
cython-coverage 38.47% <0.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

@codspeed-hq

codspeed-hq Bot commented Jul 1, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 72 untouched benchmarks
⏩ 7 skipped benchmarks1


Comparing uttam12331:fix/transport-sockname-attrs (2e947e2) with 3.14 (6ae358f)

Open in CodSpeed

Footnotes

  1. 7 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bot:chronographer:provided There is a change note present in this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant